package com.yuantong.xyerp.core.api.model.base;

import io.swagger.annotations.ApiModelProperty;

public class Pagination<T> {
    @ApiModelProperty("总记录数")
    private Integer total;
    @ApiModelProperty("总分页数")
    private Integer totalPage;
    @ApiModelProperty("每页记录数")
    private Integer perPage;
    @ApiModelProperty("当前页")
    private Integer curPage;
    @ApiModelProperty("当前分页数据")
    private T data;

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public Integer getPerPage() {
        return perPage;
    }

    public void setPerPage(Integer perPage) {
        this.perPage = perPage;
    }

    public Integer getCurPage() {
        return curPage;
    }

    public void setCurPage(Integer curPage) {
        this.curPage = curPage;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
